package com.iwomy.secureplat.platform.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.iwomy.secureplat.common.excel.annotation.ExcelLine;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 设备信息
 *
 * @author pig
 * @date 2023-11-21 10:34:52
 */
@Data
@TableName("basic_device")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "设备信息表")
public class BasicDeviceExcelVO extends Model<BasicDeviceExcelVO> {

	/**
	 * 导入时候回显行号
	 */
	@ExcelLine
	@ExcelIgnore
	private Long lineNum;

	/**
	 * 设备类型
	 */
	@Schema(description = "设备类型")
	@NotBlank(message = "设备类型不能为空")
	@ExcelProperty("设备类型")
	private String deviceTypeName;

	/**
	 * 设备型号
	 */
	@Schema(description = "设备型号")
	@NotBlank(message = "设备型号不能为空")
	@ExcelProperty("设备型号")
	private String deviceModelName;

	/**
	 * IMEI
	 */
	@Schema(description = "IMEI")
	@NotBlank(message = "IMEI不能为空")
	@ExcelProperty("IMEI")
	private String imei;

	/**
	 * 单位id
	 */
	@Schema(description = "单位id")
	@ExcelProperty("单位id")
	private Long deptId;

	/**
	 * 设备类型id
	 */
	@Schema(description = "设备类型id")
	@ExcelProperty("设备类型id")
	private Long deviceTypeId;

	/**
	 * 设备模型id
	 */
	@Schema(description = "设备模型id")
	@ExcelProperty("设备模型id")
	private Long deviceModelId;

}